package com.yidaba.database.contentobserver;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.EditText;

import com.yidaba.activity.R;

public class SMSHandler extends Handler {
	private Activity activity;
	public SMSHandler(Activity activity){
		super();
		this.activity = activity;
	}
	@Override
	public void handleMessage(Message msg) {
		super.handleMessage(msg);

    	Bundle bundle = msg.getData();
    	String v = bundle.getString("smsContent");
    	EditText b = (EditText)activity.findViewById(R.id.vnc);
    	b.setText(v);
    
	}

}
